package istar.impl;

import istar.IActor;
import istar.IElement;
import istar.ISoftgoal;

import java.util.List;
import java.util.Vector;

public class Softgoal extends AbstractElement implements ISoftgoal{

	private int state = UNDECIDED;
	private List<ContributionLink> contributionsFor = new Vector<ContributionLink>();


	public Softgoal(String _name){
		super(_name);
	}
	
	public Softgoal(String _name, IActor owner){
		super(_name, owner);
	}
	
	@Override
	public int getState() {
		return state;
	}

	@Override
	public void setState(int value) {
		this.state = value;
	}

	@Override
	public List<ContributionLink> getContributesFor() {
		return this.contributionsFor;
	}

	@Override
	public boolean achieved() {
		// TODO Auto-generated method stub
		return (state==IElement.SATISFIED);
	}


	
}
